import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CategoryEntity } from './entities/category.entity';
import { CollectEntity } from './entities/collect.entity';
import { CommentEntity } from './entities/comment.entity';
import { LikeEntity } from './entities/like.entity';
import { PostsEntity } from './entities/posts.entity';
import { PostsTagsEntity } from './entities/posts_tags.entity';
import { TagEntity } from './entities/tag.entity';
import { UserEntity } from './entities/user.entity';
import { UserResolver } from './resolvers/user/user.resolver';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      UserEntity,
      PostsEntity,
      CategoryEntity,
      CollectEntity,
      CommentEntity,
      LikeEntity,
      PostsTagsEntity,
      TagEntity,
    ]),
  ],
  providers: [UserResolver],
})
export class BlogModule {}
